package tt.dz.appserver.service.business;

import org.apache.avro.AvroRemoteException;

import com.alibaba.fastjson.JSONObject;

/**
 * 充电接口
 * @author Administrator
 *
 */
public interface ChargeService {

	
	/**
	 * 开始充电
	 * @param userCard
	 * @param chargerId
	 * @param chargePlugNo
	 * @return
	 */
	public JSONObject startCharge(String userCard, String chargerId, String chargePlugNo) throws AvroRemoteException;
	
	/**
	 * 扫码充电
	 * @param userCard
	 * @param qrCode 二维码
	 * @param chargePlugNo
	 * @return
	 */
	public JSONObject scanCharge(String userCard, String qrCode, String chargePlugNo) throws AvroRemoteException;
	
	/**
	 * 结束充电
	 * @param chargeSn
	 * @return
	 */
	public JSONObject closeCharge(String chargeSn) throws AvroRemoteException;
	
	/**
	 * 充电列表
	 * @param pageNo
	 * @return
	 */
	public JSONObject chargeList(String userCard, Integer pageNo) throws AvroRemoteException;
	
	/**
	 * 充电记录详细
	 * @param chargeSn
	 * @return
	 */
	public JSONObject chargeDetail(String chargeSn) throws AvroRemoteException;
	
	/**
	 * 获取正在进行业务操作（预约，充电）
	 * @param userPayCard
	 * @return
	 * @throws AvroRemoteException
	 */
	public JSONObject getOngoingOperation(String userPayCard) throws AvroRemoteException;
	
}
